<?php

	$sendTo = "info@cavendishedu.com";
	$subject = $_POST["cmbCategory"];
	
	$headers = "From: Inquiry <info@cavendishedu.com>\r\n";
	$headers .= "Reply-To:" . $_POST["txtEmail"] . "\r\n";
	$headers .= "Return-path: " . $_POST["txtEmail"];
	
	$body = $_POST["txtMessage"]. "\r\n\n";
	
	$body .= $_POST["txtEmail"] . "\r\n";
	$body .= $_POST["txtName"];
	
	//mail($sendTo, $subject, $body, $headers);
	ini_set("sendmail_from", "info@cavendishedu.com"); 
 	mail($sendTo, $subject, $body, $headers, "-finfo@cavendishedu.com");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Cavendish Educational Services</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" type="text/javascript" src="js/main.js" ></script>
</head>
<body onload="MM_preloadImages('images/tabHomeOv.jpg','images/tabAboutOv.jpg','images/tabServicesOv.jpg','images/tabInsOv.jpg','images/tabRegOv.jpg','images/tabContactOv.jpg')">
<table width="948" border="0" cellpadding="0" cellspacing="0" align="center">
    <!--DWLayoutTable-->
    <tr>
        <td width="948" valign="top" class="topPadding"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="topBorder">
                <!--DWLayoutTable-->
                <tr>
                    <td width="124" valign="top"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/tabHomeOv.jpg',1)"><img src="images/tabHome.jpg" name="Image2" width="124" height="26" border="0" id="Image2" /></a></td>
                    <td width="124" valign="top"><a href="About.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/tabAboutOv.jpg',1)"><img src="images/tabAbout.jpg" name="Image3" width="124" height="26" border="0" id="Image3" /></a></td>
                    <td width="147" valign="top"><a href="Services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/tabServicesOv.jpg',1)"><img src="images/tabServices.jpg" name="Image4" width="147" height="26" border="0" id="Image4" /></a></td>
                    <td width="206" valign="top"><a href="Institutes.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/tabInsOv.jpg',1)"><img src="images/tabIns.jpg" name="Image5" width="206" height="26" border="0" id="Image5" /></a></td>
                    <td width="165" valign="top"><a href="Register.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/tabRegOv.jpg',1)"><img src="images/tabReg.jpg" name="Image6" width="165" height="26" border="0" id="Image6" /></a></td>
                    <td width="182" valign="top"><a href="Contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/tabContactOv.jpg',1)"><img src="images/tabContact.jpg" name="Image7" width="182" height="26" border="0" id="Image7" /></a></td>
                </tr>
            </table></td>
    </tr>
    <tr>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td valign="top"><img src="images/header.jpg" width="948" height="270" /></td>
                </tr>
            </table></td>
    </tr>
    <tr>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td height="15" colspan="4"><img src="images/spacer.gif" width="15" /></td>
                </tr>
                <tr>
                    <td width="720" height="350" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="portlet">
                            <!--DWLayoutTable-->
                            <tr>
                                <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <!--DWLayoutTable-->
                                        <tr>
                                            <td height="4" valign="top" class="portTop"><img src="images/spacer.gif" height="4" /></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td valign="top" class="portCont"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <!--DWLayoutTable-->
                                        <tr>
                                            <td width="683" height="30" valign="top" ><img src="images/titleContact.jpg"  /></td>
                                        </tr>
                                        <tr>
                                            <td height="54" valign="top" style="line-height:16px" >Lorem ipsum dolor sit amet lorem 
                                                ipsum dolor sit amet Lorem
                                                dolor sit amet lorem ipsum dolor 
                                                sit amet. Lorem ipsum dolor
                                                ipsum dolor sit amet  sit amet Lorem
                                                dolor sit amet lorem ipsum dolor </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" height="241" >
                                            Your mail has been sent successfully..<br /><br />
                                            <a href="index.html">Back to home page</a>
                                            </td>
                                        </tr>
                                    </table></td>
                            </tr>
                        </table></td>
                    <td><img src="images/spacer.gif" width="15" /></td>
                    <td width="218" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="portlet">
                            <!--DWLayoutTable-->
                            <tr>
                                <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <!--DWLayoutTable-->
                                        <tr>
                                            <td height="4" valign="top" class="portTop"><img src="images/spacer.gif" height="4" /></td>
                                        </tr>
                                    </table></td>
                            </tr>
                            <tr>
                                <td height="128" valign="top" class="portCont" style="background-image:url(images/newsBack.gif);background-repeat:repeat-x"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <!--DWLayoutTable-->
                                        <tr>
                                            <td valign="top" height="325"  ><p style="line-height:16px"><span class="blueText"><strong>Address :</strong></span> <br />
                                                    <img src="images/spacer.gif" height="6" /><br />
                                                    No : 48, Vajira Road,<br />
                                                    Colombo 05,<br />
                                                    Sri Lanka.</p>
                                                <p style="line-height:16px"><span class="blueText"><strong>Telephone :</strong></span> <br />
                                                    <img src="images/spacer.gif" alt="" height="6" /><br />
                                                    +94 112 508996<br />
                                                    +94 060 215951</p>
                                                <p style="line-height:16px"><span class="blueText"><strong>Fax :</strong></span> <br />
                                                    <img src="images/spacer.gif" alt="" height="6" /><br />
                                                    +94 112 508996<br />
                                                </p>
                                                <p style="line-height:16px"><span class="blueText"><strong>Email :</strong></span> <br />
                                                    <img src="images/spacer.gif" alt="" height="6" /><br />
                                                    iinfo@cavendishedu.com </p></td>
                                        </tr>
                                    </table></td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td height="15" colspan="4"><img src="images/spacer.gif" width="15" /></td>
                </tr>
            </table></td>
    </tr>
    <tr>
        <td valign="top" ><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                    <td width="925" height="16" valign="top" class="footer"><a href="index.html">Home</a> | <a href="About.html">About Us </a> | <a href="Services.html">Our Services </a> | <a href="Institutes.html">Institutes & Courses </a> | <a href="Register.html">Register On-line</a> | <a href="Contact.html">Contact Us</a><br />
                        © All rights reserved</td>
                </tr>
            </table></td>
    </tr>
</table>
</body>
</html>
